<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath%>">
<script type="text/javascript" src="static/js/jquery-3.2.1.js"></script>
</head>
<body>
	<h2>Hello World!</h2>
	<a href="CoreServlet?signature=19bed175fea3bc4d1ecb95be04b053b7986f9be8&timestamp=1497347364&nonce=1936178504&echostr=17591835209911744295">提交测试</a>
	<form action="CoreServlet" method="POST">
		ToUserName:<input type="text" value="ToUserName"><br><br>
		FromUserName:<input type="text" value="FromUserName"><br><br>
		CreateTime:<input type="text" value="CreateTime"><br><br>
		MsgType:<input type="text" value="MsgType"><br><br>
		Content:<input type="text" value="Content"><br><br>
		MsgId:<input type="text" value="MsgId"><br><br>
	 	<input type="submit" value="确认" /><br><br>
	</form>
	<input type = "button" value = "微信登陆" onclick="wechatLogin()">
	
	<input id="bookUpdate" type = "button" value="更新站点" onclick="bookUpdate()">
	
	<input id="getBookUpd" type = "button" value="更新源站" onclick="getBookUpd()">
</body>
<script type="text/javascript">
function wechatLogin() {
	window.location.href="qrcode.jsp";
}
function getBookUpd(){
	$.ajax({
		url : "getBookUpd",
		success : function(){	},
	});
}
function bookUpdate(){
	$.ajax({
		url : "bookUpdate",
		success : function(){	},
	});
}
</script>
</html>
